const user = {
  state: {
    id: 0,
    name: "",
    userType: "",
  },
  mutations: {
    setUser(state, obj){
      state.id = obj.id;
      state.name = obj.name;
      state.userType = obj.userType;
    },
    removeUser(state){
      state.id = 0;
      state.name = "";
      state.userType = "";
    }
  }
}
export default user;
